class Solution:
    def twoSum(self, nums, target):
        n=len(nums)
        for i in range(n):
            for j in range(i+1,n):
                if nums[i]==nums[j]:
                    return [i,j]
nums=[2,7,11,15]
target=9
ans=Solution().twoSum(nums,target)
print(ans)